#include <QtCore/QCoreApplication>
#include "personne.h"
#include <iostream>
#include "pointeur.cpp"

using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    shared_ptr<Personne> p1(new Personne);
    p1->direBonjour();
    cout << "p1 pointer :" << &p1 << endl;

    shared_ptr<Personne> p2(p1);
    p2->direBonjour();
    cout << "p1 pointer :" << &p1 << endl;
    cout << "p2 pointer :" << &p2 << endl;

    return a.exec();
}
